package com.android.dumiaogou.adapt;

import com.android.dumiaogou.model.member.CashData;
import com.android.dumiaogou.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2016/8/10.
 */
public class listMineMoneyAdapt extends BaseQuickAdapter<CashData.DataBean.ListBean, BaseViewHolder> {

    public listMineMoneyAdapt(int layoutResId, List<CashData.DataBean.ListBean> data) {
        super(layoutResId, data);


    }

    @Override
    protected void convert(BaseViewHolder holder, CashData.DataBean.ListBean listBean) {
        holder.setText(R.id.item_list_mine_money_from, listBean.getWhereFrom());
        holder.setText(R.id.item_list_mine_money_tip, listBean.getDesc());
        holder.setText(R.id.item_list_mine_money_time, listBean.getAddtime());
        holder.setText(R.id.item_list_mine_money_price, "￥" + listBean.getTotal());
        holder.setText(R.id.item_list_mine_money_c, "￥" + listBean.getCommission());
    }


}
